<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:output method="html" indent="yes" encoding="iso-8859-1"/>

<xsl:template name="footer">
<!-- 	<xsl:if test="count(//print)=0"> -->
		<table cellspacing="0" cellpadding="2" align="center" width="100%">
			<tr>
				<td align="center" style="border-bottom-width: 1px;	border-bottom-color: {$header_bg}; border-bottom-style: solid;"><strong>Powered by <a href="http://www.yachtcouncil.com/" target="_blank"  style="color:{$color_main_first1};">Yachtcouncil.com</a></strong> 
				</td>
			</tr>
				<tr>
				<td align="center">	<nobr>
						<h3 style="margin:0; FONT-SIZE: 12px; COLOR: {$color_main_first1};">					
						<a href="default.asp" title="{//page/home_page_name}">
								<font color="{$color_main_first1}"><xsl:value-of select="//page/home_page_name"/></font>

							</a>
						
					&#160;|&#160;
						<a href="my_vessels_list.asp" title="{//page/featured_vessels_page_name}">
							<font color="{$color_main_first1}"><xsl:value-of select="//page/featured_vessels_page_name"/></font></a> 
					&#160;|&#160;
					
						<a href="global_search.asp" title="{//page/global_search_page_name}">
							<font color="{$color_main_first1}"><xsl:value-of select="//page/global_search_page_name"/></font>
						</a>
					&#160;|&#160;
							<a href="contact_us.asp" title="{//page/contact_us_page_name}"><font color="{$color_main_first1}"><xsl:value-of select="//page/contact_us_page_name"/></font></a>
					<xsl:for-each select="/page/additional_pages/additional_page">
					&#160;|&#160;
						<nobr>
							<a href="{$files_templates}/{file_name}" title="{title}"><font color="{$color_main_first1}"><xsl:value-of select="title"/></font></a>
						</nobr>
					</xsl:for-each>
					</h3>
					</nobr> 
						</td>
			</tr>
				<xsl:if test="/page/static_links/yacht_insurance_link=1 or  /page/static_links/yacht_finance_link=1 or /page/static_links/weather=1">
			<tr>
				<td align="center">
					<nobr><h3 style="margin:0; FONT-SIZE: 12px; COLOR: {$color_main_first1};">
						<xsl:if test="//page/static_links/yacht_insurance_link=1">
						<a href="premium_insurance_companies.asp" title="Yacht Insurance">
							<font color="{$color_main_first1}">Yacht Insurance</font>
						</a>
						</xsl:if>
				<xsl:if test="//page/static_links/yacht_insurance_link=1 and  //page/static_links/yacht_finance_link=1">&#160;|&#160;</xsl:if>	
<xsl:if test="//page/static_links/yacht_finance_link=1">
						<a href="premium_finance_companies.asp" title="Yacht Finance">
							<font color="{$color_main_first1}">Yacht Finance</font>
						</a>
						</xsl:if>
				<xsl:if test="(//page/static_links/yacht_insurance_link=1 or  //page/static_links/yacht_finance_link=1) and //page/static_links/weather=1">&#160;|&#160;</xsl:if>	
<xsl:if test="//page/static_links/weather=1">	
						<a href="weather.asp" title="Weather">
							<font color="{$color_main_first1}">Weather</font>
						</a>
						</xsl:if>
						&#160;&#160;
						</h3>
					</nobr>
				</td>
			</tr>
</xsl:if>							
			<tr>
				<td align="center" class="s2">
					<nobr>
						<a href="default.asp" class="s2" title="{/page/rowset[@id='company_info']/data/row/col[@name]}"><font color="{$color_main_first1}"><xsl:value-of select="/page/member_name"/></font></a>, a proud member of <a href="http://www.yachtcouncil.com" title="Yacht Council" class="s2">
							<font color="{$color_main_first1}">Yacht Council</font>
						</a>  Network.</nobr>
				</td>
			</tr>
			<tr>
				<td align="center" class="s2">
<xsl:for-each select="//page/rowset[@id='associations']/data/row">
		<xsl:variable name="next_ass" select="position() + 1"/>
		<xsl:variable name="next_next_ass" select="position() + 2"/>
		<xsl:variable name="prev_ass" select="position() - 1"/>
			<xsl:if test="(col[@name='association']!=../row[$prev_ass]/col[@name='association'] and position()!=1) or position()=1">
			<xsl:if test="position()=1 and col[@name='association']!='Trial'">
			<a href="default.asp" class="s2" title="{/page/rowset[@id='company_info']/data/row/col[@name]}"><font color="{$color_main_first1}"><xsl:value-of select="/page/member_name"/></font></a> is also a proud member of
			</xsl:if>
			<xsl:if test="position()!=1 and col[@name='association']!='Trial'">
			 and 
			</xsl:if>
			<xsl:if test="col[@name='association']='NYBA'">
			 the <a href="http://www.yachtcouncil.com/northwest-yacht-brokers-association.asp" class="s2" title="Northwest Yacht Brokers Association"><font color="{$color_main_first1}">Northwest Yacht Brokers Association</font></a>
			</xsl:if> 
			<xsl:if test="col[@name='association']='FYBA'">
			 the <a href="http://www.yachtcouncil.com/florida-yacht-brokers-association.asp" class="s2" title="Florida Yacht Brokers Association"><font color="{$color_main_first1}">Florida Yacht Brokers Association</font></a>
			</xsl:if> 
			<xsl:if test="col[@name='association']='CYBA'">
			 the <a href="http://www.yachtcouncil.com/california-yacht-brokers-association.asp" class="s2" title="California Yacht Brokers Association"><font color="{$color_main_first1}">California Yacht Brokers Association</font></a>
			</xsl:if> 
			<xsl:if test="col[@name='association']='YBAA'">
			 the <a href="http://www.yachtcouncil.com/yacht-brokers-association-of-america.asp" class="s2" title="Yacht Brokers Association of America"><font color="{$color_main_first1}">Yacht Brokers Association of America</font></a>
			</xsl:if> 
			<xsl:if test="col[@name='association']='MYBA'">
			 the <a href="http://www.yachtcouncil.com/mediterranean-yacht-brokers-association.asp" class="s2" title="Mediterranean Yacht Brokers Association"><font color="{$color_main_first1}">Mediterranean Yacht Brokers Association</font></a>
			</xsl:if> 
			<xsl:if test="col[@name='association']='BCYBA'">
			 the <a href="http://www.yachtcouncil.com/british-columbia-yacht-brokers-association.asp" class="s2" title="British Columbia Yacht Brokers Association"><font color="{$color_main_first1}">British Columbia Yacht Brokers Association</font></a>
			</xsl:if> 
			<xsl:if test="col[@name='association']='ABYA'">
			 the <a href="http://www.yachtcouncil.com/association-of-brokers-yacht-agents.asp" class="s2" title="Association of Brokers, Yacht Agents"><font color="{$color_main_first1}">Association of Brokers, Yacht Agents</font></a>
			</xsl:if> 
			<xsl:if test="col[@name='association']!='Trial'">
			(<xsl:value-of select="col[@name='association']"/>)&#160;
			</xsl:if> 
			</xsl:if> 
	</xsl:for-each>
				</td>
			</tr>
			<tr>
				<td align="center" class="s2"><br/><br/>
				</td>
			</tr>
		</table>
<!-- 	</xsl:if> -->
</xsl:template>

</xsl:stylesheet>
